package cc.telecomdigital.tdstock.utils;

public class Fx implements BMPEntityBase
{
	/*
	 * 美元： 歐元，日圓，英鎊，瑞郎，澳元，紐元，加元，港元 
	 * 交叉匯率： 歐元/英鎊，歐元/瑞郎，英鎊/日圓，澳元/日圓，歐元/日圓，瑞郎/日圓 
	 * 港元： 歐元，日圓，英鎊，瑞郎，澳元，紐元，加元
	 */
	static final String[]			TypeName			= { "EUR", "JPY", "GBP", "CHF", "AUD", "NZD", "CAD", "HKD",
														"EURGBP", "EURCHF", "GBPJPY", "AUDJPY", "EURJPY", "CHFJPY",
														"EURHKD", "JPYHKD", "GBPHKD", "CHFHKD", "AUDHKD", "NZDHKD", "CADHKD"
														};

	static final public String		NAME				= "NAME";

	static final public String		PREV				= "PREV";
	static final public String		NET					= "NET";
	static final public String		NETPERCENTAGE		= "NETPERCENTAGE";

	static final public String		BID					= "BID";
	static final public String		ASK					= "ASK";

	static final public String[]	FIELD_ITEMS_MONITOR	= { NAME, PREV, NET, NETPERCENTAGE, BID, ASK };

	private String					name;
	private String					prev;
	private String					net;
	private String					netPercentage;
	private String					bid;
	private String					ask;

	@Override
	public void SetValueByFIELDS_MONITOR(int i, String value)
	{
		switch (i)
		{
			case 0:
				setName(value);
				break;
			case 1:
				setPrev(value);
				break;
			case 2:
				setNet(value);
				break;
			case 3:
				setNetPercentage(value);
				break;
			case 4:
				setBid(value);
				break;
			case 5:
				setAsk(value);
				break;
		}
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getPrev()
	{
		return prev;
	}

	public void setPrev(String prev)
	{
		this.prev = prev;
	}

	public String getNet()
	{
		return net;
	}

	public void setNet(String net)
	{
		this.net = net;
	}

	public String getNetPercentage()
	{
		return netPercentage;
	}

	public void setNetPercentage(String netPercentage)
	{
		this.netPercentage = netPercentage;
	}

	public String getBid()
	{
		return bid;
	}

	public void setBid(String bid)
	{
		this.bid = bid;
	}

	public String getAsk()
	{
		return ask;
	}

	public void setAsk(String ask)
	{
		this.ask = ask;
	}

	@Override
	public void SetValueByFIELDS(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_COP(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_NET(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_STOCK(int index, String value)
	{
	}

	@Override
	public void SetValueByFIELDS_TURNOVER(int index, String value)
	{
	}

	@Override
	public String GetKey()
	{
		return name;
	}

	@Override
	public void SetKeyValue(String value)
	{
		name = value;
	}

}
